package A.service;

import A.dao.UserDao;

public class UserService {

    private UserDao userDao;

    //set注入的话，必须要提供一个set方法，来给userDao属性赋值
    public void setMAA(UserDao xyz){
        this.userDao = xyz;
    }


    //这个set方法是idea工具生成的，符合JavaBean规范
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void saveUser() {
        userDao.insert();
    }
}
